package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseContract", catalog="Id")
public class TcgPurchaseContract extends BaseEntity<TcgPurchaseContract> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="CompanyInfoVid", nameJava="companyInfoVid", typeDataBase="varchar")
	private String companyInfoVid;
	@YsField(nameDataBase="ContractFile", nameJava="contractFile", typeDataBase="varchar")
	private String contractFile;
	@YsField(nameDataBase="CompanyBankInfoId", nameJava="companyBankInfoId", typeDataBase="bigint")
	private Long companyBankInfoId;
	@YsField(nameDataBase="PartnerBankInfoId", nameJava="partnerBankInfoId", typeDataBase="bigint")
	private Long partnerBankInfoId;
	@YsField(nameDataBase="ContractAmount", nameJava="contractAmount", typeDataBase="decimal")
	private BigDecimal contractAmount;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseContract setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchaseContract setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcgPurchaseContract setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcgPurchaseContract setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getCompanyInfoVid() {
		return companyInfoVid;
	}
	public TcgPurchaseContract setCompanyInfoVid(String companyInfoVid) {
		this.companyInfoVid = companyInfoVid;
		return this;
	}
	public String getContractFile() {
		return contractFile;
	}
	public TcgPurchaseContract setContractFile(String contractFile) {
		this.contractFile = contractFile;
		return this;
	}
	public Long getCompanyBankInfoId() {
		return companyBankInfoId;
	}
	public TcgPurchaseContract setCompanyBankInfoId(Long companyBankInfoId) {
		this.companyBankInfoId = companyBankInfoId;
		return this;
	}
	public Long getPartnerBankInfoId() {
		return partnerBankInfoId;
	}
	public TcgPurchaseContract setPartnerBankInfoId(Long partnerBankInfoId) {
		this.partnerBankInfoId = partnerBankInfoId;
		return this;
	}
	public BigDecimal getContractAmount() {
		return contractAmount;
	}
	public TcgPurchaseContract setContractAmount(BigDecimal contractAmount) {
		this.contractAmount = contractAmount;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcgPurchaseContract setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseContract setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseContract setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseContract setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseContract tcgPurchaseContract(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String companyInfoVid,
		String contractFile,
		Long companyBankInfoId,
		Long partnerBankInfoId,
		BigDecimal contractAmount,
		String remark,
		Integer status
			) {
		TcgPurchaseContract entity = new TcgPurchaseContract();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setCompanyInfoVid(companyInfoVid);
		entity.setContractFile(contractFile);
		entity.setCompanyBankInfoId(companyBankInfoId);
		entity.setPartnerBankInfoId(partnerBankInfoId);
		entity.setContractAmount(contractAmount);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}